import { defineStore } from 'pinia'
import { ref } from 'vue'

// 生产存储数据
export const useWmsStoreOut = defineStore("wms", () => {
// state
 // 加工单数据
 const wmsworkOrderList = ref(uni.getStorageSync("wmsworkOrderList") || '[]')
 
 // action
 /**
  * 设置加工单数据
  */
 function setwmsworkOrderList(data) {
     wmsworkOrderList.value = JSON.stringify([data])
     uni.setStorageSync("wmsworkOrderList", wmsworkOrderList.value)
 }
 return {
     wmsworkOrderList,
     setwmsworkOrderList
 }
})